package cn.luyou.admin.service;

import cn.luyou.admin.entity.TrainingPaperQuestion;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

public interface TrainingPaperQuestionService extends IService<TrainingPaperQuestion> {
    /**
     * 批量保存训练试卷题目
     *
     * @param paperId   试卷ID
     * @param questions 题目列表
     */
    void saveBatch(Long paperId, List<TrainingPaperQuestion> questions);

    /**
     * 获取训练试卷的题目列表
     *
     * @param paperId 试卷ID
     * @return 题目列表
     */
    List<TrainingPaperQuestion> getQuestionsByPaperId(Long paperId);

    /**
     * 删除训练试卷的所有题目
     *
     * @param paperId 试卷ID
     */
    void deleteByPaperId(Long paperId);
} 